﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cms.Core.Infrastructure.Ui
{
    /// <summary>
    /// 默认动态类型
    /// </summary>
    public class PageResult : PageResult<dynamic>
    {
        public PageResult() : base(new List<dynamic>(), 0, "操作成功", true)
        {

        }
        public PageResult(List<dynamic> data, int total, string message= "操作成功", bool success = true):base(data,total, message, success)
        {
          
        }


        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public new  PageData ToPageData()
        {
            return new PageData(data:base.Data,total:base.Total,message:base.Message,success:base.Success);
        }
    }
}
